﻿using Application.Dto;
using Domain.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.IAppSrevices
{
    public interface ISGService
    {
        /// <summary>
        /// 根据编号查询对应发放登记数据
        /// </summary>
        /// <param name="num"></param>
        /// <returns></returns>
        List<NewSG> GetNewSG(int num);

        /// <summary>
        /// 添加薪酬发放登记信息
        /// </summary>
        /// <param name="sG"></param>
        /// <returns></returns>
        Task<int> SGAddAsync(SGAddDto sGAddDto);

        /// <summary>
        /// 分页查询薪酬发放登记数据
        /// </summary>
        /// <param name="fenYe"></param>
        /// <returns></returns>
        FenYe<SG> SGSelectFnYe(FenYe<SG> fenYe);

        /// <summary>
        /// 根据薪酬发放编号查询对应数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<SG> SGByIdAsync(string id);

        /// <summary>
        /// 修改通过薪酬发放数据
        /// </summary>
        /// <param name="sGD"></param>
        /// <returns></returns>
        Task<int> SGUpdateAsync(SG sG);

        /// <summary>
        /// 多条件查询薪酬发放数据
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        /// <param name="startDate"></param>
        /// <param name="endDate"></param>
        /// <returns></returns>
        FenYe<SG> SGSelectWhere(FenYe<SG> fenYe, string id, string name, string startDate, string endDate);
    }
}
